package com.user.query.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.user.query.dao.base.BaseMapper;
import com.user.query.model.User;
import com.user.query.utils.Page;

public interface UserMapper extends BaseMapper {
	int deleteByPrimaryKey(String userId);

	int insert(User record);

	int insertSelective(User record);

	User selectByPrimaryKey(String userId);

	int updateByPrimaryKeySelective(User record);

	int updateByPrimaryKey(User record);

	User getUserByAccountNoAndPsw(@Param("accountNo") String accountNo,
			@Param("psw") String psw);

	User selectByAccountNo(String accountNo);

	void updatePswById(@Param("userId") String userId, @Param("psw") String psw);
	
	 List<User> selectManagerUsers(@Param(value="isCity")String isCity,@Param(value="keyWord")String keyWord, 
	    		@Param(value="status")Integer status, @Param(value="page")Page page);

	int countManagerUsers(@Param(value="isCity")String isCity,@Param(value="keyWord")String keyWord, @Param(value="status")Integer status,@Param(value="page") Page page);
}